﻿//debugger;
function _IncludeScript(inc){
    var script = '<' + 'script type="text/javascript" src="../Scripts/Libs/SuperMap/' + inc + '"' + '><' + '/script>'; 
	document.writeln(script);
}


function _GetBrowser(){
	var ua=navigator.userAgent.toLowerCase();
	if(ua.indexOf('opera')!=-1)return'opera';
	else if(ua.indexOf('msie')!=-1)return'ie';
	else if(ua.indexOf('safari')!=-1)return'safari';
	else if(ua.indexOf('gecko')!=-1)return'gecko';
	else return false;
}

if(!Function.__typeName){
	_IncludeScript('MicrosoftAjax.js');//务必先引入该脚本库

	_IncludeScript('SuperMap.Web.js');

	_IncludeScript('SuperMap.Web.iServerJava6R.js');

    _IncludeScript('SuperMap.Web.Realspace.js');

}